<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<title>index</title>
		<style type="text/css" media="screen">
			body {
				font-family: Monaco, Consolas, "Courier New"
			}
			table.file-grid {
			}
			table.file-grid a {
				text-decoration: none;
			}
			table.file-grid a:hover {
				text-decoration: underline;
			}
			div.percent_bar {
				font-size: 0.6em;
				
				height: 0.8em;
				width: 6em;
				border: 1px solid #999;
				background-color: #e00;
			}
			div.percent_bar div.indicator {
				height: 100%;
				background-color: #0e0;
			}
			
		</style>
	</head>
	<body>
		<table border='1'>
			<tr>
				<th>Command Line</th>
				<th>Module Count</th>
				<th>Total Line</th>
				<th>Total Coverage</th>
				<th>Date</th>
			</tr>
			<tr>
				<td><%= stat[:command_line_at] %></td>
				<td><%= stat[:modules].size %></td>
				<td><%= stat[:total] %></td>
				<td><%= Html::percent_bar stat[:coverage] %></td>
				<td><%= stat[:date] %></td>
			</tr>
		</table>
		<p>
		<% stat[:modules].each do |mod| %>
			<table border='1'>
				<tr>
					<th>Module Name</th>
					<th>File Count</th>
					<th>Line Count</th>
					<th>Coverage</th>
				</tr>
				<tr>
					<td><%= mod[:name] %></td>
					<td><%= mod[:files].size %></td>
					<td><%= mod[:total] %></td>
					<td><%= Html::percent_bar mod[:coverage] %></td>
				</tr>
			</table>
			
			<table class='file-grid' border='1'>
				<tr>
					<th>#</th>
					<th>File Name</th>
					<th>Line Count</th>
					<th>Coverage</th>
				</tr>
				<% file_index = 1
				   mod[:files].each do |file| %>
			   <tr>
					<td><%= file_index %>
					<td><%= Html::link_to_file file[:name] %></td>
					<td><%= file[:total] %></td>
					<td><%= Html::percent_bar file[:coverage] %></td>
				</tr>
				<% file_index += 1
				   end %>
			
			</table>
			
		<% end %>
		
<hr />

<script type="text/javascript"><!--
google_ad_client = "pub-4817386600910115";
//文字链接，创建于 08-1-15
google_ad_slot = "8625190476";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = ""; // on file
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


	</body>
</html>
